<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>对象过滤</title>
  <script src="jquery-1.11.3.min.js"></script>
 </head>
 <body>
     <ul>
	    <li>AAAAA</li>
		<li title="hello">BBBBB</li>
		<li title="world">CCCCC</li>
		<li title="world">DDDDD</li>
		<li title="hello"><span>EEEEE</span></li>
	 </ul>
	 <li>EEEEE</li>
	 <li>FFFFF</li>
 </body>
  <script>
     $_lis = $("ul li");
     $_lis.first().css({"background-color":"red"});
	 $_lis.last().css({"background-color":"red"});
	 $_lis.eq(1).css({"background-color":"blue"});
     $_lis.filter("[title = hello]").css({"color":"yellow"});
	 $_lis.not("[title = hello]").css({"color":"green"});
	 $_lis.has("span").css({"background-color":"green"});
  </script>
</html>
